package Servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import Info.BaogaoDI;
import Manage.BaogaoDM;


public class LookDS extends HttpServlet{
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		response.setContentType("text/html;charset=utf-8");		

		String card = request.getParameter("card");
		BaogaoDM bdm = new BaogaoDM();
		BaogaoDI bd = bdm.Find(card);
		request.setAttribute("bd",bd);
	
		request.getRequestDispatcher("BD.jsp").forward(request, response);
	}
}
